#include "usertime.h"

time_type rtc;
ntp_type ntp;

time_t now;
struct tm timeinfo;

void clock_init(void)
{
    rtc_clk_32k_enable_external();
    //rtc_clk_32k_bootstrap(true);
}

void esp32_settime(time_type *time)
{
    localtime_r(&now, &timeinfo);
}

void esp32_gettime(time_type *time)
{
    
}


